@import "common";

body {
    min-width: 320px;
    width: 15rem;
    margin: 0 auto;
    line-height: 1.5;
    font-family: Arial, Helvetica, STHeiTi, sans-serif;
    background-color: #f2f2f2;
}

ul,
li {
    list-style: none;
}

@basefont: 50px;

.top-banner {
    position: relative;
    width: 750rem / @basefont;
    height: 100rem / @basefont;

    .top-banner-img {
        display: block;
        width: 100%;
        height: 100%;

        img {
            display: block;
            width: 100%;
            height: 100%;
        }
    }

    .close {
        position: absolute;
        top: 0.5em;
        left: 0.1em;
        width: 50rem / @basefont;
        height: 50rem / @basefont;
        background: url(../images/close.png) no-repeat center center;
        background-size: 30rem / @basefont auto;
    }
}

@headerColor: #ffdb47;

.header {
    width: 750rem / @basefont;
    height: 180rem / @basefont;
    background-color: @headerColor;

    .header-top {
        display: flex;
        justify-content: space-between;
        width: 682rem / @basefont;
        height: 88rem / @basefont;
        padding: 0 34rem / @basefont;
        align-items: center;

        .classify {
            img {
                display: block;
                width: 36rem / @basefont;
                height: 60rem / @basefont;
            }
        }

        .ad {
            img {
                display: block;
                width: 450rem / @basefont;
                margin-right: 50rem / @basefont;
            }

        }

        .login {
            img {
                display: block;
                width: 36rem / @basefont;
                height: 60rem / @basefont;
            }
        }
    }

    .header-bottom {
        position: relative;
        width: 750rem / @basefont;
        height: 92rem / @basefont;
        padding: 0 24rem / @basefont;
        box-sizing: border-box;

        a {
            position: absolute;
            top: 0;
            left: 24rem / @basefont;
            width: 702rem / @basefont;
            height: 88rem / @basefont;
        }

        i {
            position: absolute;
            left: 42rem / @basefont;
            top: 26rem / @basefont;
            width: 36rem / @basefont;
            height: 36rem / @basefont;
            background: url(../images/search_btn.png) no-repeat 0 0;
            background-size: 36rem / @basefont auto;
        }

        form {
            display: flex;
            width: 702rem / @basefont;
            height: 88rem / @basefont;
            align-items: center;

            input {
                width: 702rem / @basefont;
                height: 64rem / @basefont;
                padding: 3rem / @basefont 20rem / @basefont 0 65rem / @basefont;
                border: 0;
                border-radius: 32rem / @basefont;
                box-sizing: border-box;
                font-size: 0.56rem;
                line-height: 64rem / @basefont;
            }
        }
    }
}

.banner {
    width: 750rem / @basefont;
    height: 260rem / @basefont;
    background: url(../images/banner_bg.png) no-repeat 0 0;
    background-size: 750rem / @basefont auto;

    .wrapper {
        position: relative;
        width: 702rem / @basefont;
        height: 260rem / @basefont;
        margin: 0 auto;
        overflow: hidden;

        ul {
            position: relative;
            width: 200rem / @basefont;
            height: 260rem / @basefont;
            margin: 0;

            li {
                position: absolute;
                left: 702rem / @basefont;
                top: 0;
                width: 702rem / @basefont;
                height: 260rem / @basefont;
                border-radius: 24rem / @basefont;
                overflow: hidden;

                &.current {
                    left: 0;
                }

                img {
                    width: 702rem / @basefont;
                    height: 260rem / @basefont;
                }
            }
        }

        ol {
            position: absolute;
            bottom: 5rem / @basefont;
            left: 291rem / @basefont;
            display: flex;
            margin: 0;
            padding: 0;
            width: 120rem / @basefont;
            height: 4.5rem / @basefont;
            justify-content: space-around;

            li {
                flex: 1;
                display: flex;
                justify-content: center;

                i {
                    width: 4.5rem / @basefont;
                    height: 4.5rem / @basefont;
                    background: rgba(0, 0, 0, 0.3);
                    border-radius: 50%;

                    &.current {
                        width: 8rem / @basefont;
                        background-color: #f2f2f2;
                        border-radius: 2rem / @basefont;
                    }
                }
            }
        }
    }

    .tuijian {
        width: 750rem / @basefont;
        height: 280rem / @basefont;

        a {
            float: left;
            width: 250rem / @basefont;
            height: 280rem / @basefont;

            img {
                width: 100%;
                height: 100%;
            }
        }
    }
}

.tuijian {
    width: 750rem / @basefont;
    height: 280rem / @basefont;

    a {
        float: left;
        width: 250rem / @basefont;
        height: 280rem / @basefont;

        img {
            width: 100%;
            height: 100%;
        }
    }
}

.nav {
    width: 750rem / @basefont;
    height: 308rem / @basefont;

    a {
        float: left;
        display: flex;
        width: 150rem / @basefont;
        height: 142rem / @basefont;
        text-decoration: none;
        color: #666;
        font-size: 22rem / @basefont;
        flex-direction: column;
        align-items: center;

        img {
            display: block;
            width: 84rem / @basefont;
            height: 84rem / @basefont;
            margin: 24rem / @basefont 0 0;
        }

        p {
            height: 20rem / @basefont;
            line-height: 28rem / @basefont;
        }
    }
}

.hongbao {
    width: 750rem / @basefont;
    height: 234rem / @basefont;
    border-radius: 10rem / @basefont;
    overflow: hidden;
    margin-bottom: 24rem / @basefont;

    .hb1 {
        float: left;
        width: 373rem / @basefont;
        height: 234rem / @basefont;

        img {
            display: block;
            width: 100%;
            height: 100%;
        }
    }

    .hb2 {
        float: left;
        width: 186rem / @basefont;
        height: 234rem / @basefont;

        img {
            display: block;
            width: 100%;
            height: 100%;
        }
    }
}

.tejia {
    width: 702rem / @basefont;
    border-radius: 8rem / @basefont;
    box-sizing: border-box;
    margin: 0 auto;

    .tj-top {
        display: flex;
        background-color: #fff;


        .tj-top-lf {
            flex: 1;
            display: block;
            justify-content: space-between;
            width: 50%;
            height: 258rem / @basefont;
            border-right: 1rem / @basefont solid #eee;
            padding: 18rem / @basefont 0 0 24rem / @basefont;
            box-sizing: border-box;

            h3 {
                font-size: 28rem / @basefont;
                margin: 0;
            }

            p {
                margin: 0;
                font-size: 24rem / @basefont;
                color: #999;
            }

            .box {
                display: flex;
                justify-content: space-between;

                a {
                    display: flex;
                    float: 1;
                    flex-direction: column;
                    text-decoration: none;
                    align-items: center;
                    width: 322rem / @basefont;
                    height: 249rem / @basefont;

                    img {
                        float: 1;
                        width: 120rem / @basefont;
                    }

                    span {
                        color: #f50;
                        font-size: 22rem / @basefont;
                    }
                }
            }
        }

        .tj-top-rg {
            flex: 1;
            display: block;
            justify-content: space-between;
            width: 50%;
            height: 258rem / @basefont;
            border-right: 1rem / @basefont solid #eee;
            padding: 18rem / @basefont 24rem / @basefont 0 0;
            box-sizing: border-box;


            h3 {
                font-size: 28rem / @basefont;
                margin: 0;
                margin-left: 24rem / @basefont;
            }

            p {
                margin: 0;
                font-size: 24rem / @basefont;
                color: #999;
                margin-left: 24rem / @basefont;
            }

            .box {
                display: flex;
                justify-content: space-between;

                a {
                    display: flex;
                    float: 1;
                    flex-direction: column;
                    text-decoration: none;
                    align-items: center;
                    width: 322rem / @basefont;
                    height: 249rem / @basefont;

                    img {
                        float: 1;
                        width: 120rem / @basefont;
                    }

                    span {
                        color: #333;
                        font-size: 22rem / @basefont;
                    }
                }
            }
        }
    }

    .tj-md {
        display: flex;

        background-color: #fff;


        .tj-md-lf {
            flex: 1;
            display: block;
            justify-content: space-between;
            width: 50%;
            height: 258rem / @basefont;
            border-right: 1rem / @basefont solid #eee;
            box-sizing: border-box;

            h3 {
                font-size: 28rem / @basefont;
                margin: 0;
                margin-left: 24rem / @basefont;
            }

            p {
                margin: 0;
                font-size: 24rem / @basefont;
                color: #999;
                margin-left: 24rem / @basefont;
            }

            .box {
                display: flex;
                justify-content: space-between;

                a {
                    display: flex;
                    float: 1;
                    flex-direction: column;
                    text-decoration: none;
                    align-items: center;
                    width: 322rem / @basefont;
                    height: 249rem / @basefont;

                    img {
                        float: 1;
                        width: 120rem / @basefont;
                    }

                    span {
                        color: #f50;
                        font-size: 22rem / @basefont;
                    }
                }
            }
        }

        .tj-md-rg {
            flex: 1;
            display: block;
            justify-content: space-between;
            width: 50%;
            height: 258rem / @basefont;
            border-right: 1rem / @basefont solid #eee;
            padding: 18rem / @basefont 24rem / @basefont 0 0;
            box-sizing: border-box;


            h3 {
                font-size: 28rem / @basefont;
                margin: 0;
                margin-left: 24rem / @basefont;
            }

            p {
                margin: 0;
                font-size: 24rem / @basefont;
                color: #999;
                margin-left: 24rem / @basefont;
            }

            .box {
                display: flex;
                justify-content: space-between;

                a {
                    display: flex;
                    float: 1;
                    flex-direction: column;
                    text-decoration: none;
                    align-items: center;
                    width: 322rem / @basefont;
                    height: 258rem / @basefont;

                    img {
                        float: 1;
                        width: 120rem / @basefont;
                    }

                    span {
                        display: block;
                        width: 150rem / @basefont;
                        height: 54rem / @basefont;
                        text-align: center;
                        background: url(../images/kuang.png) no-repeat center top;
                        background-size: contain;
                        padding-top: 22rem / @basefont;
                        color: #333;
                        font-size: 22rem / @basefont;
                    }
                }
            }
        }
    }

    .tejia-bt {
        display: flex;
        width: 702rem / @basefont;
        height: 172rem / @basefont;
        background-color: #fff;

        .zhuti {

            padding: 47rem / @basefont 18rem / @basefont 0;


            h3 {
                margin: 0;
                font-size: 32rem / @basefont;
                color: #444;
            }

            span {
                display: block;
                font-size: 24rem / @basefont;
                color: #999;
                margin: 0;
            }
        }

        ul {
            display: flex;
            width: 538rem / @basefont;
            height: 172rem / @basefont;
            align-items: center;
            margin: 0;
            padding: 0;

            li {
                display: flex;
                justify-content: center;
                width: 120rem / @basefont;
                height: 172rem / @basefont;

                a {
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    width: 120rem / @basefont;
                    height: 172rem / @basefont;
                    flex: 1;
                    text-decoration: none;

                    img {
                        width: 100rem / @basefont;
                        height: 100rem / @basefont;
                    }

                    span {
                        display: block;
                        text-align: center;
                        width: 120rem / @basefont;
                        height: 30rem / @basefont;
                        color: #333;
                        font-size: 22rem / @basefont;
                    }
                }
            }
        }
    }
}

.tuijianbang {
    margin: 0 auto;
    width: 750rem / @basefont;
    height: 820rem / @basefont;

    .tuijian-img {
        display: block;
        width: 750rem / @basefont;
        height: 60rem / @basefont;
    }

    .tj-img {
        display: flex;
        width: 702rem / @basefont;
        height: 266rem / @basefont;
        justify-content: space-around;
        margin: 0 24rem / @basefont 13rem / @basefont;
        padding: 0;

        li {
            display: flex;
            flex-direction: column;
            text-align: center;
            width: 226rem / @basefont;
            height: 266rem / @basefont;
            border-radius: 8rem / @basefont;
            box-sizing: border-box;
            background-color: #fff;
            overflow: hidden;

            img {
                display: block;
                text-align: center;
                margin: 15rem / @basefont 38rem / @basefont 0;
                width: 150rem / @basefont;
                height: 150rem / @basefont;
            }

            .bgc {
                width: 226rem / @basefont;
                height: 93rem / @basefont;
                margin-top: 15rem / @basefont;
                background: linear-gradient(to right, #daa879, #cf9e70);

                span {
                    display: block;
                    margin: 0 63rem / @basefont;
                    margin-top: -20rem / @basefont;
                    background-color: #fff;
                    width: 99rem / @basefont;
                    height: 33rem / @basefont;
                    border: 1rem / @basefont solid #d9a87a;
                    color: #d9a87a;
                    border-radius: 16.5rem / @basefont;
                    font-size: 22rem / @basefont;
                }

                .name {
                    margin: 0;
                    color: #fff;
                    font-size: 26rem / @basefont;
                }

                .count {
                    margin: 0;
                    color: #fff;
                    margin-bottom: 5rem / @basefont;
                    font-size: 22rem / @basefont;
                }
            }
        }
    }
}

.renqibang {
    width: 702rem / @basefont;
    border-radius: 8rem / @basefont;
    box-sizing: border-box;
    margin: 0 auto;
    overflow: hidden;

    .tj-top {
        display: flex;
        background-color: #fff;


        .tj-top-lf {
            flex: 1;
            display: block;
            justify-content: space-between;
            width: 50%;
            height: 258rem / @basefont;
            border-right: 1rem @basefont solid #eee;
            padding: 18rem / @basefont 0 0 24rem / @basefont;
            box-sizing: border-box;

            h3 {
                position: relative;
                font-size: 28rem / @basefont;
                margin: 0;

                &::after {
                    position: absolute;
                    left: 210rem / @basefont;
                    top: 5rem / @basefont;
                    content: "人气榜";
                    width: 90rem / @basefont;
                    height: 28rem / @basefont;
                    border-radius: 12rem / @basefont;
                    background-color: #f9f5ee;
                    line-height: 28rem / @basefont;
                    text-align: center;
                    color: #ab813a;
                    font-size: 22rem / @basefont;
                }

            }

            p {
                margin: 0;
                font-size: 24rem / @basefont;
                color: #999;
            }

            .box {
                display: flex;
                justify-content: space-between;

                a {
                    display: flex;
                    float: 1;
                    flex-direction: column;
                    text-decoration: none;
                    align-items: center;
                    width: 322rem / @basefont;
                    height: 249rem / @basefont;

                    img {
                        float: 1;
                        width: 140rem / @basefont;
                    }
                }
            }
        }

        .tj-top-rg {
            flex: 1;
            display: block;
            justify-content: space-between;
            width: 50%;
            height: 258rem / @basefont;
            border-right: 1rem / @basefont solid #eee;
            padding: 18rem / @basefont 24rem / @basefont 0 0;
            box-sizing: border-box;


            h3 {
                position: relative;
                font-size: 28rem / @basefont;
                margin: 0;
                margin-left: 24rem / @basefont;

                &::after {
                    position: absolute;
                    left: 210rem / @basefont;
                    top: 5rem / @basefont;
                    content: "人气榜";
                    width: 90rem / @basefont;
                    height: 28rem / @basefont;
                    border-radius: 12rem / @basefont;
                    background-color: #f9f5ee;
                    line-height: 28rem / @basefont;
                    text-align: center;
                    color: #ab813a;
                    font-size: 22rem / @basefont;
                }
            }

            p {
                margin: 0;
                font-size: 24rem / @basefont;
                color: #999;
                margin-left: 24rem / @basefont;
            }

            .box {
                display: flex;
                justify-content: space-between;

                a {
                    display: flex;
                    float: 1;
                    flex-direction: column;
                    text-decoration: none;
                    align-items: center;
                    width: 322rem / @basefont;
                    height: 249rem / @basefont;

                    img {
                        float: 1;
                        width: 140rem / @basefont;
                    }

                    span {
                        color: #333;
                        font-size: 22rem / @basefont;
                    }
                }
            }
        }
    }

    .tj-md {
        display: flex;

        background-color: #fff;


        .tj-md-lf {
            flex: 1;
            display: block;
            justify-content: space-between;
            width: 50%;
            height: 258rem / @basefont;
            border-right: 1rem / @basefont solid #eee;
            padding: 18rem / @basefont 0 0 24rem / @basefont;
            box-sizing: border-box;

            h3 {
                position: relative;
                font-size: 28rem / @basefont;
                margin: 0;

                &::after {
                    position: absolute;
                    left: 210rem / @basefont;
                    top: 5rem / @basefont;
                    content: "人气榜";
                    width: 90rem / @basefont;
                    height: 28rem / @basefont;
                    border-radius: 12rem / @basefont;
                    background-color: #f9f5ee;
                    line-height: 28rem / @basefont;
                    text-align: center;
                    color: #ab813a;
                    font-size: 22rem / @basefont;
                }
            }

            p {
                margin: 0;
                font-size: 24rem / @basefont;
                color: #999;
                margin-left: 24rem / @basefont;
            }

            .box {
                display: flex;
                justify-content: space-between;

                a {
                    display: flex;
                    float: 1;
                    flex-direction: column;
                    text-decoration: none;
                    align-items: center;
                    width: 322rem / @basefont;
                    height: 249rem / @basefont;

                    img {
                        float: 1;
                        width: 140rem / @basefont;
                    }

                    span {
                        color: #f50;
                        font-size: 22rem / @basefont;
                    }
                }
            }
        }

        .tj-md-rg {
            flex: 1;
            display: block;
            justify-content: space-between;
            width: 50%;
            height: 258rem / @basefont;
            border-right: 1rem / @basefont solid #eee;
            padding: 18rem / @basefont 24rem / @basefont 0 0;
            box-sizing: border-box;


            h3 {
                position: relative;
                font-size: 28rem / @basefont;
                margin: 0;
                margin-left: 24rem / @basefont;

                &::after {
                    position: absolute;
                    left: 210rem / @basefont;
                    top: 5rem / @basefont;
                    content: "人气榜";
                    width: 90rem / @basefont;
                    height: 28rem / @basefont;
                    border-radius: 12rem / @basefont;
                    background-color: #f9f5ee;
                    line-height: 28rem / @basefont;
                    text-align: center;
                    color: #ab813a;
                    font-size: 22rem / @basefont;
                }
            }

            p {
                margin: 0;
                font-size: 24rem / @basefont;
                color: #999;
                margin-left: 24rem / @basefont;
            }

            .box {
                display: flex;
                justify-content: space-between;

                a {
                    display: flex;
                    float: 1;
                    flex-direction: column;
                    text-decoration: none;
                    align-items: center;
                    width: 322rem / @basefont;
                    height: 258rem / @basefont;

                    img {
                        float: 1;
                        width: 140rem / @basefont;
                    }
                }
            }
        }
    }

}

.footer {
    position: relative;
    width: 750rem / @basefont;
    height: 120rem / @basefont;
    background-color: #f2f2f2;

    .daohang {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        bottom: 0;
        margin: 0 auto;
        width: 750rem / @basefont;
        height: 101rem / @basefont;
        background-color: #fff;

        ul {
            display: flex;
            width: 750rem / @basefont;
            height: 101rem / @basefont;
            align-items: center;
            justify-content: space-around;
            margin: 0;
            padding: 0;

            li {
                flex: 1;
                display: flex;
                justify-content: space-between;
                flex-direction: column;
                align-items: center;

                img {
                    width: 48rem / @basefont;
                    height: 48rem / @basefont;
                }

                p {
                    margin: 0;
                    padding: 0;
                    font-size: 20rem / @basefont;
                }
            }
        }
    }
}